// 文件和文件夹的类型定义
export interface FileNode {
  id: string;
  name: string;
  path: string;
  isDirectory: boolean;
  children?: FileNode[];
  isFile?: boolean;
}

// 设置项类型
export interface AppSettings {
  markdownFolderPath: string;
  fontFamily: string;
  fontSize: number;
  theme: 'light' | 'dark';
}

// 应用状态类型
export interface AppState {
  fileTree: FileNode[];
  currentFile?: string;
  searchQuery: string;
  filteredFiles: FileNode[];
  settings: AppSettings;
}